<?php

namespace G4T\Form\Element;

class FileElement extends \Zend_Form_Element_File implements ElementInterface, TypeInterface
{
    public function init()
    {
        $uploadDir = dirname(APPLICATION_PATH) . \Zend_Registry::get('config')->upload->dir;
        $this->setDestination($uploadDir);
    }

    public function setParams(array $params)
    {
        // TODO: Implement setParams() method.
    }

    /**
     * Текстовое название типа для jqgrid.
     *
     */
    public function getFormElementType()
    {
        return "file";
    }
}
